package com.shuai.orderfood.common;

import java.util.regex.Pattern;

public class Constant {

    //是超级管理员
    public static final Integer IS_SUPER_YES = 1;

    //不是超级管理员
    public static final Integer IS_SUPER_NO = 0;

    //jwt相关配置
    public static final String JWT_SECRET = "shuai-order-food-system-secret-key-2024";
    public static final int JWT_EXPIRATION = 86400000;

    //用户手机号码的正确格式
    public static final String PHONE_REGEX = "^1[3-9]\\d{9}$";
    public static final Pattern PHONE_PATTERN = Pattern.compile(Constant.PHONE_REGEX);

    //分页查询时默认查询的页码
    public static final Integer DEFAULT_PAGE = 1;

    //分页查询时默认一页查询的条数
    public static final Integer DEFAULT_LIMIT = 10;
}
